<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    var arr = [1, 2, 3, 4, 5]
    var a = arr.join('');
    var b = a.split('');
    console.log(a);
    console.log(b);
    var arr1 = ['a', 'b', 'c', 'd']
    var c = arr1.push('e');
    console.log(c);
    var d = arr1.pop('e')
    console.log(d);
    console.log(arr1)
    var arr2 = ['x', 'y', 'z'];
    var e = arr2.unshift('x');
    console.log(arr2);
    console.log(e);
    var f = arr2.shift('x');
    console.log(f);
    console.log(arr2);
</script>